
<div id="main" class="main" >
    <SCRIPT LANGUAGE="JavaScript">
        <!--
        function read(filename){
            ThinkAjax.send('__URL__/readFile','ajax=1',readComplete);
        }
        function build(){
            ThinkAjax.send('__URL__/build/','ajax=1&id={$vo.id}');
        }
        function readComplete(data,status){
            if (status==1){
                alert(data);
            }
        }

        //-->
    </SCRIPT>
    <div class="content">
        <div class="title"><equal name="vo.level"  value="1">项目</equal><equal name="vo.level" value="2">模块</equal><equal name="vo.level"  value="3">操作</equal>设计 [ <A HREF="__URL__">返回列表</A> ]</div>
        <div class="operate" >
            <html:imageBtn name="add" value="生成" click="build()" style="impBtn hMargin fLeft shadow" />
            <html:imageBtn name="add" value="配置" click="read()" style="impBtn hMargin fLeft shadow" />
            <html:imageBtn name="add" value="插件" click="read()" style="impBtn hMargin fLeft shadow" />
        </div>
        <div id="result" class="result none"></div>
        <div class="list">
            <FORM METHOD=POST  id="form1" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
                <switch name="vo.level" >
                <case value="1" >
                    <TABLE cellpadding=3 cellspacing=3 >
                        <TR>
                            <TD class="tRight" >项目名称：</TD>
                            <TD class="tLeft" ><input TYPE="text" class="large readonly bLeftRequire" readonly check='^\w+$' warning="名称不能为空,且不能含有空格"  NAME="name" value="{$vo.name} {$vo.title}"></TD>
                        </TR>
                        <TR>
                            <TD class="tRight tTop" >已有模块列表：</TD>
                            <TD class="tLeft" ><SELECT class="medium bLeft" size="6" >
                                    <volist name="list" id="vo">
                                        <option value="">{$vo.name} [ {$vo.title} ]</option>
                                    </volist>
                                </SELECT></TD>
                        </TR>
                        <TR>
                            <TD class="tRight tTop" >未安装模块列表：</TD>
                            <TD class="tLeft" ><SELECT class="medium bLeft" size="6" >
                                    <volist name="modules" id="vo">
                                        <option value="">{$vo.name} [ {$vo.title} ]</option>
                                    </volist>
                                </SELECT></TD>
                        </TR>
                        <TR>
                            <TD class="tRight tTop">描 述：</TD>
                            <TD class="tLeft"><TEXTAREA class="large bLeft" NAME="remark" onfocus="notice('remark')" ROWS="5" COLS="57">{$vo.remark}</TEXTAREA></TD>
                        </TR>
                        <TR>
                            <TD ></TD>
                            <TD class="center"><div style="width:85%;margin:5px"><input TYPE="hidden" name="id" value="{$vo.id}" >
                                    <input TYPE="hidden" name="ajax" value="1">
                                    <input TYPE="hidden" name="pid" value="{$vo.pid}">
                                    <div class="impBtn fLeft"><input TYPE="button" value="保存" onclick="sendForm('form1','__URL__/update/','tips')" class="save imgButton"></div>
                                    <div class="impBtn fRig"><input TYPE="reset" onclick="history.back(-1)" class="reset imgButton" value="取消" ></div>
                                </div></TD>
                        </TR>
                    </TABLE>
                    </div>
                </case>
                <case value="2" ></case>
                <case value="3" ></case>
                </switch>
            </FORM>
        </div>
    </div>
